
const boundary:any = {
    state:{
        areaData: {},
        mapPolygon: ""
    },
    getters:{
        areaData: (state:any) => state.areaData,
        mapPolygon: (state:any) => state.mapPolygon
    },
    mutations:{
        SET_AREA_DATA(state:any,info: any): void {
            state.areaData = info;
        },
        UPDATE_MAP_POLYGON(state:any,mapPolygon: any): void {
            state.mapPolygon = mapPolygon;
        }
    },
    actions:{
        saveAreaData({commit},info: any) {
            commit('SET_AREA_DATA',info)
        },
        updateMapPolygon({commit},mapPolygon: any){
            commit('UPDATE_MAP_POLYGON',mapPolygon)
        }
    }
}

export default boundary
